package com.jianbo.demoSpace;

import com.jianbo.proxy.Start;
import com.jianbo.proxy.conf.ArgsConf;

public class LowcodeStart {
    public static void main(String[] args) {
        args = SpaceConfMock.getArgs(); 
        ArgsConf.getInstance(args);
        Start.main(args);
        // 请求一次 index.html
        // HttpUtil.doRequest("http://localhost:8091/html/index/index.html", "GET", null, null);
    }

    public static class SpaceConfMock {
        // mock 启动参数 
        public static String[] getArgs() {
            String baseDir = "D:/www/jianbo_plus/h5/lowcode-front-v2/conf/pure/";
            String[] args = {
                // 配置目录
                "confDir="+baseDir+"conf/",
                // 前端目录
                "frontDir=D:/www/jianbo_plus/h5/lowcode-front-v2/",
            };
            return args;
        }
    }
}
